package com.lbd.gulimall.cart.service;

import com.lbd.gulimall.cart.vo.CartItemVO;
import com.lbd.gulimall.cart.vo.CartVO;

import java.util.List;
import java.util.concurrent.ExecutionException;

/**
 * @Author: linbd
 * @Description:
 * @Date: 2023/3/25 14:25
 */
public interface CartService {
    CartItemVO addToCart(Long skuId, Integer count) throws ExecutionException, InterruptedException;

    CartItemVO getCartItem(Long skuId);

    CartVO getCart() throws ExecutionException, InterruptedException;

    void delCart(String key);

    void checkItem(Long skuId, Integer check);

    void checkCount(Long skuId, Integer num);

    void deleteItem(Long skuId);

    List<CartItemVO> getAllSelectedCartItem();
}
